package chainOfResponsibility;

import lombok.Data;


public abstract class Handler {

    protected Handler next;
    //设置职责链下一位是关键
    public void setNext(Handler next) {
        this.next = next;
    }

    abstract void handleHoliday(HolidayRequest holidayRequest);

}
